package com.m.job.logs.mapper;

import com.m.job.logs.model.MJobRunLogs;
import com.m.job.logs.model.dto.MJobRunLogsDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MJobRunLogsMapper {
    /**
     * delete by primary key
     * @param runLogId primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(String runLogId);


    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(MJobRunLogs record);

    /**
     * 批量新增
     * @param list
     * @return
     */
    int insertBatch(List<MJobRunLogs> list);

    /**
     * select by primary key
     * @param runLogId primary key
     * @return object by primary key
     */
    MJobRunLogsDto selectByPrimaryKey(String runLogId);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(MJobRunLogs record);

    /**
     * 查询
     * @param mJobRunLogs
     * @return
     */
    List<MJobRunLogsDto>  listLogs(MJobRunLogsDto  mJobRunLogs);


}